package org.studio.crusoe.framework.pattern.expression;

import org.junit.Test;

public class ExpressionSessionTester {
    @Test
    public void test() {
        ExpressionSession session = new ExpressionSession("\"Hello \" + edition");
        session.setVariable("edition", "test expression");
        System.out.println(session.excute());
        
        session.setVariable("edition", "test expression-2");
        System.out.println(session.excute());
    }
    
    @Test
    public void testNum() {
        ExpressionSession session = new ExpressionSession("(123+12) + edition");
        session.setVariable("edition", 11);
        System.out.println(session.excute());
    }
}
